<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>商品详情</title>
    <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="css/mystyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="container col-md-6 col-md-offset-3 text-center" style="margin-top: 50px">
    <table align="center" class="table table-bordered table-striped box1">
        <tbody>
        <tr>
            <td colspan="3" align="center" class="bg-info">商品详情</td>
        </tr>
        <tr>
            <td align="center">商品类型：</td>
            <td align="center">${sessionScope.productDetail.type}</td>
            <td rowspan="4" align="center"><img src="${sessionScope.productDetail.image}" class="img-responsive"></td>
        </tr>
        <tr>
            <td align="center">商品ID：</td>
            <td align="center">${sessionScope.productDetail.id}</td>
        </tr>
        <tr>
            <td align="center">商品名称：</td>
            <td align="center">${sessionScope.productDetail.name}</td>
        </tr>
        <tr>
            <td align="center">商品原价：</td>
            <td align="center">￥${sessionScope.productDetail.price}</td>
        </tr>
        <tr>
            <td align="center">商品现价：</td>
            <td align="center">￥ ${sessionScope.productDetail.price}</td>
            <td align="center"><a href="#">浏览大图</a></td>
        </tr>
        <tr>
            <td align="center">商品描述：</td>
            <td colspan="2" align="center">

                <textarea name="" cols="50" rows="5">${sessionScope.productDetail.description}</textarea>

            </td>
        </tr>
        <tr>
            <td colspan="3">
                <a href="${pageContext.request.contextPath}/shoppingCartServlet?demand=buy&id=${sessionScope.productDetail.id}" type="button" class="center btn btn-default space" style="margin-left: 300px">加入购物车</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"> </script>

</body>
</html>
